package com.chat.entry.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;
import lombok.Value;

@Getter
public enum GroupMemberRole {
    OWNER(1, "群主"),
    ADMIN(2, "管理员"),
    MEMBER(3, "群员");

    @EnumValue   // ✅ 标记这个字段作为存储到数据库的值
    private Integer roleId;
    private String roleName;

    GroupMemberRole(Integer roleId, String roleName) {
        this.roleId = roleId;
        this.roleName = roleName;
    }
}
